%% -*- Erlang -*-
%%============================================================================
{deps,
 [{rebar3, {git, "git://github.com/erlang/rebar3.git", {tag, "3.13.2"}}},
  {proper, {git, "https://github.com/proper-testing/proper", {branch, "master"}}}]
}.

{plugins,
 [rebar3_hex, {rebar3_erlydtl_plugin, ".*", {git, "https://github.com/tsloughter/rebar3_erlydtl_plugin.git", {branch, "master"}}}]
}.

{erlydtl_opts,  [{custom_tags_modules, [nifty_tags]},
                 {custom_filters_modules, [nifty_filters]},
                 {auto_escape, false},
                 {compiler_options, [debug_info]},
                 {source_ext, ".tpl"},
                 {recursive, false},
                 {force_recompile, true},
                 {module_ext, "_nifty_template"}
                ]}.

{pre_hooks,
  [{"(linux|darwin|solaris)", compile, "make -C c_src"},
   {"(freebsd)", compile, "gmake -C c_src"}]}.
{post_hooks,
  [{"(linux|darwin|solaris)", clean, "make -C c_src clean"},
   {"(freebsd)", clean, "gmake -C c_src clean"}]}.

{dialyzer, [{warnings, [unmatched_returns, underspecs]},
            {base_plt_location, "cache/"},
            {base_plt_apps, [erts,
                             kernel,
                             stdlib,
                             compiler,
                             crypto,
                             syntax_tools,
                             tools]}]}.

%% don't change the following line
{provider_hooks, [{post, [{compile, {erlydtl, compile}}]}]}.
